namespace EyeOpen
{
	using System;

	public static class EnsureStringExtensions
	{
		public static void IsNotNullOrWhiteSpace(this IEnsure<string> obj)
		{
			var ensure = obj as Ensure<string>;

			if (string.IsNullOrWhiteSpace(ensure.Obj))
			{
				throw new ArgumentException(ensure.ParameterName);
			}
		}
	}
}